/*
 * @Author: your name
 * @Date: 2020-10-06 09:28:00
 * @LastEditTime: 2020-10-27 15:50:36
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \longh_web\src\apis\Home.js
 */

import request from '@/utils/request'

//获取统计数据
export function homeTjData() {
    return request({
        url: '/wenge/microservice-supply-consumer-web/productInfo/homeTj',
        method: 'POST',
    })
}



// 获取首页产品供应
export function getOnlineRecommendationData(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/productInfo/getOnlineRecommendation',
        method: 'POST',
        data
    })
}
// 随机版--首页推荐getOnlineRecommendation
export function getRandomOnlineRecommendationList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/productInfo/getRandomOnlineRecommendationList',
        method: 'POST',
        data
    })
}

//产品 热门分类
export function getHotProductCategory() {
    return request({
        url: '/wenge/microservice-supply-consumer-web/productCategory/getHotProductCategory',
        method: 'get',
    })
}


//获取物资推荐
export function getOnlineRecommendationPageList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/materialsDemand/getOnlineRecommendationPageList',
        method: 'POST',
        data
    })
}
//随机版--首页推荐getRandomOnlineRecommendationList
export function getWZRandomOnlineRecommendationList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/materialsDemand/getRandomOnlineRecommendationList',
        method: 'POST',
        data
    })
}


// 查询产品分类
export function getByParent() {
    return request({
        url: '/wenge/microservice-supply-consumer-web/productCategory/getByParent',
        method: 'get',
    })
}


// 获取树形分类
export function getHotProductCategoryTree(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/productCategory/getHotProductCategoryTree',
        method: 'post',
        data
    })
}


